/* 青云门修真攻略 - 组件样式文件 */

/* 技能卡片组件 */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-card-header {
    background: var(--gradient-dark);
    padding: 1rem;
    position: relative;
}

.skill-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.skill-type {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.skill-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.skill-card-body {
    padding: 1rem;
}

.skill-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.skill-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.skill-stat {
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.skill-stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.skill-stat-value {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1rem;
}

.skill-damage {
    color: var(--accent-color);
}

.skill-cooldown {
    color: var(--secondary-color);
}

.skill-mana {
    color: var(--primary-color);
}

/* 攻略卡片组件 */
.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.guide-card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.difficulty-easy {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.difficulty-medium {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.difficulty-hard {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.guide-rewards {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.guide-card-body {
    padding: 1rem;
}

.guide-summary {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guide-tag {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* 策略卡片组件 */
.strategy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.strategy-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.strategy-vs {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.win-rate {
    text-align: right;
}

.win-rate-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.win-rate-value {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.strategy-content {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.strategy-tips {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.strategy-tips-title {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.strategy-tips-list {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.strategy-tips-list li {
    margin-bottom: 0.25rem;
}

.strategy-tips-list li::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 装备卡片组件 */
.equipment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.equipment-card-header {
    padding: 1rem;
    background: var(--gradient-dark);
    position: relative;
}

.equipment-name {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.equipment-type {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.equipment-rarity {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.rarity-common {
    background: rgba(155, 155, 155, 0.2);
    color: #9b9b9b;
}

.rarity-rare {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.rarity-epic {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.rarity-legendary {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.equipment-card-body {
    padding: 1rem;
}

.equipment-stats {
    margin-bottom: 1rem;
}

.equipment-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.equipment-stat:last-child {
    border-bottom: none;
}

.equipment-stat-name {
    color: var(--text-secondary);
}

.equipment-stat-value {
    color: var(--text-primary);
    font-weight: bold;
}

.equipment-source {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.equipment-source-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.equipment-source-value {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 标签页内容组件 */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* 加载状态组件 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示框组件 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 进度条组件 */
.progress-bar {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    height: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 12px;
    transition: width 0.3s ease;
}

/* 响应式组件调整 */
@media (max-width: 768px) {
    .skill-stats {
        grid-template-columns: 1fr;
    }
    
    .guide-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .strategy-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .win-rate {
        text-align: left;
    }
    
    .equipment-card-header {
        text-align: center;
    }
    
    .equipment-rarity {
        position: static;
        margin-top: 0.5rem;
        display: inline-block;
    }
}